﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UGUIFW;
using UnityEngine.UI;
using System;
using UnityEngine.Events;

public class NormalUI_02 : BaseUI
{
    Text text;
    public NormalUI_02(UIInfo uIInfo) : base(uIInfo)
    {

    }
    public override void Display()
    {
        base.Display();
        text = transform.Find("Text").GetComponent<Text>();
        RigisterButtonObjectEvent("BtnClose",
         go =>
         {
             CloseUI();
             ExternalAction?.Invoke();
         });
        text.text = ExternalData.ToString();
    }
}
